const app = getApp()
const api = wx.getStorageSync('api')
Page({
  data: {

  },
  onLoad: function (options) {
    const url = api.getInviteRules
    app.$http.get(url).then(res => {
      console.log(res)
      let rules = res.data.rules
      this.setData({
        rules
      })
    })
  }
})